package com.ll.mapper;

import com.ll.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    public List<Product> list(@Param("product") Product product);

    int add(Product product);

    Product detail(@Param("productId") Integer productId);

    int update(Product product);

    int delete(Integer productId);
}
